from django.conf.urls.defaults import *
from views import view, edit, add, list
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    url(r'^list/$', list, name="wiki_list"),
    url(r'^edit/(?P<path>(?:\w|[\-\/.])+?)(?:/)?$', edit, name="wiki_edit"),
    url(r'^add/(?P<path>(?:\w|[\-\/.])+?)(?:/)?$', add, name="wiki_add"),
    url(r'^view/(?P<path>(?:\w|[\-/\.])+?)(?:/)?$', view, name="wiki_view"),
    url(r'^view/$', view, name="wiki_home", kwargs={'path':'home'}),
    url(r'^$', view, name="wiki_home", kwargs={'path':'home'}),
)
